package com.zjj.day2.test4;
/**
 * @author zhoujunjie
 * @desc TODO
 * @date 2025/4/18
 */
public class Manager extends Employee{
    private String department;

    @Override
    public void show() {
        super.show();
        System.out.println("所管部门: " + department);
    }

    public Manager(String name, String address, int salary, String department) {
        super(name,address,salary);
        this.department=department;
    }

    public Manager() {
    }

    public Manager(String department) {
        this.department = department;
    }

    /**
     * 获取
     * @return department
     */
    public String getDepartment() {
        return department;
    }

    /**
     * 设置
     * @param department
     */
    public void setDepartment(String department) {
        this.department = department;
    }

    public String toString() {
        return "Manager{department = " + department + "}";
    }
}
